//
// Created by 吴喆 on 2020/3/18.
//

#ifndef SUMMER_BODY_H
#define SUMMER_BODY_H


#include <box2d/box2d.h>
#include <glm/glm.hpp>

class Body {
public:
    b2Body *instance = nullptr;
    // 碰撞盒相对位置
    /**
     *
     */
    b2Body *sensor = nullptr;

    glm::vec2 startPos;
    glm::vec2 currentPos;
    glm::vec2 lastPos;
    b2FixtureDef fixtureDef;
    b2PolygonShape dynamicBox;



    glm::vec2 sensorField;
};


#endif //SUMMER_BODY_H
